package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmSensitiveDto;

import com.heima.model.wemedia.pojos.WmSensitive;




import java.util.List;

public interface WmSensitiveService extends IService<WmSensitive> {

    /**
     * 查询所有违规词并存储在Redis
     * @return
     */
    ResponseResult<List<String>> findAllAndRedis();





    /**
     * 查找敏感词
     * @param dto
     * @return
     */
    ResponseResult findSensitive(WmSensitiveDto dto);



    /**
     * 保存敏感词
     * @param wmSensitive
     * @return
     */
    ResponseResult saveSensitive(WmSensitive wmSensitive);

    /**
     * 删除违规词
     * @param id
     * @return
     */
    ResponseResult deleteSensitiveById(Long id);

    /**
     * 修改违规词
     * @param sensitive
     * @return
     */
    ResponseResult updateSensitiveById(WmSensitive sensitive);
}